import VueRouter from 'vue-router'

import HomeContainer from './components/tabbar/homeContainer.vue'
import MemberContainer from './components/tabbar/memberContainer.vue'
import SearchContainer from './components/tabbar/seachContainer.vue'
import ShopCarContainer from './components/tabbar/shopcarContainer.vue'
import NewsList from './components/news/newslist.vue'
import newsInfo from './components/news/newsinfo.vue'


var router = new VueRouter({
    routes: [
        {path: '/', redirect: '/home'},
        {path: '/home', component: HomeContainer},
        {path: '/member', component: MemberContainer},
        {path: '/search', component: SearchContainer},
        {path: '/shopcar', component: ShopCarContainer},
        {path: '/home/newslist', component: NewsList},
        {path: '/home/newsInfo/:id',component: newsInfo}
    ],
    linkActiveClass: 'mui-active'
});

export default router
